package com.whisper.hfdp.threadpool;

import java.util.concurrent.Callable;
import java.util.concurrent.TimeUnit;

public class Call implements Callable<Integer> {
    @Override
    public Integer call() throws Exception {
        int a = 1;
        for (int i = 1; i < 10; i++) {
            TimeUnit.MILLISECONDS.sleep(100);
            System.out.println("i = " + i + ", a = " + a);
            a = a * i;
        }
        return a;
    }
}
